/*const m2=require("./m2")
console.log(m2)
m2.sayHello()*/

//运行结果
//控制台输出
//{ username: '张三', sayHello: [Function (anonymous)] }
//hello

//导入m1模块
/*const m1=require("./m1")
console.log(m1)
console.log(m1.user)
console.log(m1.user.nickname)
m1.sayHi()*/

//控制台输出
/*
{
  user: { username: 'LMH', nickname: '敦刻尔克号舰长', gender: '男' },
  sayHi: [Function: sayHi]
}
{ username: 'LMH', nickname: '敦刻尔克号舰长', gender: '男' }
敦刻尔克号舰长
hi!

*/
/*const myDate=require("./dateFormate")

console.log(myDate.dateFormate(new Date()))*/
var moment=require("moment")

let dt=moment().format("yyyy-MM-DD hh:mm:ss")

console.log(dt)